<?php

/**
 * Show
 * @author Tuan Hoang <hoangtuan438@gmail.com>
 */
class StoryWidget extends CWidget {

    public function run() {
	//get random success story
	$model = Story::model()->findAll(array(
	    'order' => 'rand()',
	    'limit' => 1,
	));

	$this->render('story', array('model' => $model));
    }

}
